#include "mainwindow.h"

#include <QApplication>
#include <opencv2/opencv.hpp>

using namespace cv;

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);


    std::cout << "ok" << std::endl;
    Mat img;
    img = imread("i:/a.jpg");


    std::string modelFile = "I:/yangshaodong/python/my-python/onnx/yolov5x.onnx";

   // 从 ONNX 文件中读取模型
   cv::dnn::Net net = cv::dnn::readNetFromONNX(modelFile);

   // 检查模型是否成功加载
   if (net.empty()) {
       std::cerr << "Failed to load network!" << std::endl;
       return -1;
   }




   // MainWindow w;
   // w.show();
    return a.exec();
}
